from random import sample
from string import ascii_uppercase
from string import digits
print(ascii_uppercase, digits)
N = input("激活码数量：")
if N.isdigit():
    for i in range(int(N)):
        print(''.join(sample(ascii_uppercase + digits, 32)))
else:
    print("格式不正确")
